rem setx DOTNETCORE_ENVIRONMENT dev /M

set ser_name="_ThresholdAssistant.Quartz"

set binPath="%cd%\ThresholdAssistant.Job.exe"

set ser_description="阈值助手定时任务"

sc create %ser_name% binPath= %binPath%

sc description %ser_name% %ser_description%

sc start %ser_name%

sc config %ser_name% start= AUTO

@echo off
@echo 完成
@pause